package com.rpc.exception;

import lombok.Getter;
import lombok.NonNull;
import lombok.Setter;
import lombok.ToString;

/**
 * @author yangzhuoleo
 * @desc ${DESCRIPTION}
 * @create 2017-12-09 16:58
 **/
@ToString
public class GenericException extends RuntimeException {

    private static final long serialVersionUID = -6675855940162075335L;

    @Getter
    @Setter
    @NonNull
    private ErrCode errCode;

    public GenericException(ErrCode errCode) {
        super(errCode.getMsg());
    }

}
